home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Telnet 2.7b5 / source / config / IC / ICKeys.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-25  |  5.4 KB  |  167 lines  |  [TEXT/CWIE]

  1. /*
  2.     The canonical Internet Config interface is defined in Pascal.  These headers have
  3.     not been thoroughly tested.  If there is a conflict between these headers and the
  4.     Pascal interfaces, the Pascal should take precedence.
  5. */
  6.  
  7.  
  8. #ifndef __ICKEYS__
  9. #define __ICKEYS__
  10.  
  11. #ifndef __TYPES__
  12. #include <Types.h>
  13. #endif
  14.  
  15. #ifndef __ALIASES__
  16. #include <Aliases.h>
  17. #endif
  18.  
  19.  
  20. #define kICRealName "\pRealName"    /* PString */
  21. #define kICEmail "\pEmail"    /* PString -- user@host.domain */
  22. #define kICMailAccount "\pMailAccount"    /* PString -- user@host.domain */
  23. #define kICMailPassword "\pMailPassword"    /* PString -- scrambled */
  24. #define kICNewsAuthUsername "\pNewsAuthUsername"    /* PString -- host.domain */
  25. #define kICNewsAuthPassword "\pNewsAuthPassword"    /* PString -- scrambled */
  26. #define kICArchiePreferred "\pArchiePreferred"    /* PString -- formatted */
  27. #define kICArchieAll "\pArchieAll"    /* STR# -- formatted */
  28. #define kICUMichPreferred "\pUMichPreferred"    /* PString -- formatted */
  29. #define kICUMichAll "\pUMichAll"    /* STR# -- formatted */
  30. #define kICInfoMacPreferred "\pInfoMacPreferred"    /* PString -- formatted */
  31. #define kICInfoMacAll "\pInfoMacAll"    /* STR# -- formatted */
  32. #define kICPhHost "\pPhHost"    /* PString -- host.domain */
  33. #define kICWhoisHost "\pWhoisHost"    /* PString -- host.domain */
  34. #define kICFingerHost "\pFingerHost"    /* PString -- host.domain */
  35. #define kICFTPHost "\pFTPHost"    /* PString -- host.domain */
  36. #define kICTelnetHost "\pTelnetHost"    /* PString -- host.domain */
  37. #define kICSMTPHost "\pSMTPHost"    /* PString -- host.domain */
  38. #define kICNNTPHost "\pNNTPHost"    /* PString -- host.domain */
  39. #define kICGopherHost "\pGopherHost"    /* PString -- host.domain */
  40. #define kICLDAPServer "\pLDAPServer"    /* PString -- host.domain */
  41. #define kICLDAPSearchbase "\pLDAPSearchbase"    /* PString -- string LDAP thing */
  42. #define kICWWWHomePage "\pWWWHomePage"    /* PString -- URL */
  43. #define kICWAISGateway "\pWAISGateway"    /* PString -- no idea */
  44. #define kICScreenFont "\pScreenFont"    /* ICFontRecord */
  45. #define kICPrinterFont "\pPrinterFont"    /* ICFontRecord */
  46. #define kICTextCreator "\pTextCreator"    /* ICAppSpec */
  47. #define kICBinaryTypeCreator "\pBinaryTypeCreator"    /* ICFileInfo */
  48. #define kICDownloadFolder "\pDownloadFolder"    /* ICFileSpec */
  49. #define kICSignature "\pSignature"    /* TEXT */
  50. #define kICOrganization "\pOrganization"    /* PString */
  51. #define kICPlan "\pPlan"    /* TEXT */
  52. #define kICQuotingString "\pQuotingString"    /* PString */
  53. #define kICMailHeaders "\pMailHeaders"    /* TEXT */
  54. #define kICNewsHeaders "\pNewsHeaders"    /* TEXT */
  55. #define kICMapping "\pMapping"    /* ICMapEntries */
  56. #define kICCharacterSet "\pCharacterSet"    /* ICCharTable */
  57. #define kICHelper "\pHelper•"    /* ICAppSpec */
  58. #define kICServices "\pServices"    /* ICServices */
  59.  
  60. #if defined(powerc) || defined (__powerc)
  61. #pragma options align=mac68k
  62. #endif
  63.  
  64. struct ICFontRecord {
  65.     short size;
  66.     Style face;
  67.     char pad;
  68.     Str255 font;
  69. };
  70. typedef struct ICFontRecord ICFontRecord, *ICFontRecordPtr, **ICFontRecordHandle;
  71.  
  72. struct ICCharTable {
  73.     unsigned char net_to_mac[256];
  74.     unsigned char mac_to_net[256];
  75. };
  76. typedef struct ICCharTable ICCharTable, *ICCharTablePtr, **ICCharTableHandle;
  77.  
  78. struct ICAppSpec {
  79.     OSType fCreator;
  80.     Str63 name;
  81. };
  82. typedef struct ICAppSpec ICAppSpec, *ICAppSpecPtr, **ICAppSpecHandle;
  83.  
  84. struct ICFileInfo {
  85.     OSType fType;
  86.     OSType fCreator;
  87.     Str63 name;
  88. };
  89. typedef struct ICFileInfo ICFileInfo, *ICFileInfoPtr, **ICFileInfoHandle;
  90.  
  91. struct ICFileSpec {
  92.     Str31 vol_name;
  93.     long vol_creation_date;
  94.     FSSpec fss;
  95.     AliasRecord alias;
  96.     /* plus extra data, aliasSize 0 means no alias manager present when
  97.             ICFileSpecification was created */
  98. };
  99. typedef struct ICFileSpec ICFileSpec, *ICFileSpecPtr, **ICFileSpecHandle;
  100.  
  101. enum {
  102.     ICfile_spec_header_size = sizeof(ICFileSpec) - sizeof(AliasRecord)
  103. };
  104.  
  105. struct ICMapEntry {
  106.     short total_length;
  107.     short fixed_length;
  108.     short version;
  109.     OSType file_type;
  110.     OSType file_creator;
  111.     OSType post_creator;
  112.     long flags;
  113.     /* variable part starts here */
  114.     Str255 extension;
  115.     Str255 creator_app_name;
  116.     Str255 post_app_name;
  117.     Str255 MIME_type;
  118.     Str255 entry_name;
  119. };
  120. typedef struct ICMapEntry ICMapEntry, *ICMapEntryPtr, **ICMapEntryHandle;
  121.  
  122. enum {
  123.     ICmap_binary_bit = 0,                        /* file should be transfered in binary as opposed to text mode */
  124.     ICmap_binary_mask = 0x00000001,
  125.     ICmap_resource_fork_bit = 1,        /* the resource fork of the file is significant */
  126.     ICmap_resource_fork_mask = 0x00000002,
  127.     ICmap_data_fork_bit = 2,                /* the data fork of the file is significant */
  128.     ICmap_data_fork_mask = 0x00000004,
  129.  
  130.     ICmap_post_bit = 3,                            /* post process using post fields */
  131.     ICmap_post_mask = 0x00000008,
  132.  
  133.     ICmap_not_incoming_bit = 4,            /* ignore this mapping for incoming files */
  134.     ICmap_not_incoming_mask = 0x00000010,
  135.     ICmap_not_outgoing_bit = 5,            /* ignore this mapping for outgoing files */
  136.     ICmap_not_outgoing_mask = 0x00000020,
  137.  
  138.     ICmap_fixed_length = 22                    /* number in fixed_length field */
  139. };
  140.  
  141. struct ICServiceEntry {
  142.     Str255 name;
  143.     short port;
  144.     short flags;
  145. };
  146. typedef struct ICServiceEntry ICServiceEntry, *ICServiceEntryPtr, **ICServiceEntryHandle;
  147.  
  148. struct ICServices {
  149.     short count;
  150.     ICServiceEntry services[1];
  151. };
  152. typedef struct ICServices ICServices, *ICServicesPtr, **ICServicesHandle;
  153.  
  154. enum {
  155.     ICservices_tcp_bit = 0,
  156.     ICservices_tcp_mask = 0x00000001,
  157.     ICservices_udp_bit = 1,
  158.     ICservices_udp_mask = 0x00000002
  159.     /* both bits can be set, which means the service is both TCP and UDP, eg daytime */
  160. };
  161.  
  162. #if defined(powerc) || defined(__powerc)
  163. #pragma options align=reset
  164. #endif
  165.  
  166. #endif
  167.